using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Quant.Entities
{
    public class StrategyConfig
    {
        [Key]
        public int Id { get; set; }

        [Required]
        public int OrderMode { get; set; } // 1-固定金额 2-仓位比例

        [Range(1, 125)]
        public int Leverage { get; set; } = 10;

        [Column(TypeName = "decimal(18,8)")]
        public decimal FixedAmount { get; set; }

        [Column(TypeName = "decimal(5,4)")]
        public decimal PositionRatio { get; set; }

        [StringLength(50)]
        public string Symbol { get; set; } = "BTCUSDT";
    }
}